(function (window, $) {
  var home = {
    init: function () {
      this.cacheElment();
      this.bindEvent();
    },
    cacheElment: function () {
      this.index = 0;
      this.timer = null;
    },
    bindEvent: function () {
      this.newsSwiper();
    },
    newsSwiper: function () {
      var mySwiper = new Swiper('.swiper-container', {
        direction: 'vertical', // 垂直切换选项
        loop: true, // 循环模式选项
        autoplay: {
          delay: 3000,
        },
        speed: 1000,
        pagination: {
          el: '.swiper-pagination',
          clickable: true,
        },
        slidesPerView: 3
      });
    }
  }
  home.init();
})(window, jQuery);